package com.freestyle.seatabusiness.order.spi;

import com.freestyle.easyshiro.intercept.method.SessionTokenUtils;
import org.apache.dubbo.rpc.Invoker;

/**
 * Created by rocklee on 2022/4/2 17:09
 */
public class TokenSupplier implements com.freestyle.easyshiro.intercept.dubbo.spi.TokenSupplier<Invoker> {
  @Override
  public String getToken(Invoker invoker) {
    return (String) SessionTokenUtils.getToken();
  }
}
